<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]>      <html class="no-js"> <!--<![endif]-->
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="">
        <script src="js/echarts.js"></script>
    </head>
    <body>
            <!-- 图表容器 -->
            <div id="chart" style="width: 800px; height: 600px; margin: 0 auto"></div>
        
            <script>
                // 初始化图表
                const chart = echarts.init(document.getElementById('chart'));
        
                // 数据
                const days = ['周一', '周二', '周三', '周四', '周五', '周六', '周日'];
                const visits = [320, 402, 431, 398, 520, 630, 710];
        
                // 配置项
                const option = {
                    // 标题配置
                    title: {
                        text: '{a|一周每天的访问量份额占比——你的学号}', 
                        link: 'https://www.baidu.com',
                        target: 'self', 
                        left: 'center', 
                        textStyle: {
                            fontSize: 16,
                            color: '#333',
                            rich: {
                                a: { 
                                    textDecoration: 'underline',
                                    cursor: 'pointer' 
                                }
                            }
                        }
                    },
                    // 饼图系列
                    series: [{
                        type: 'pie',
                        data: days.map((day, index) => ({
                            name: day,
                            value: visits[index]
                        })),
                        radius: '60%', 
                        label: {
                            show: true,
                            formatter: '{b}: {d}%'
                        }
                    }]
                };
        
                chart.setOption(option);
            </script>
    </body>
</html>